<?php
/**
 * Home
 *
 * Copyright (c) 2008-2012 Twin Huang. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @author      Twin Huang <twinh@yahoo.cn>
 * @copyright   Twin Huang
 * @license     http://www.opensource.org/licenses/apache2.0.php Apache License
 * @version     $Id: Controller.php 1239 2012-03-11 15:16:01Z itwinh@gmail.com $
 * @since       2011-01-09 09:42:41
 */

class Index_Controller extends Qwin_Controller
{
    public function indexAction()
    {
        $page = $this->get('page', '?module=index&action=welcome');
        $page = urldecode($page);
        $page = $this->toText($page);


        $title = $this->get('title', $this->lang['Main Page']);
        $title = urldecode($title);
        $title = $this->toText($title);

        $menus = $this->query('menu')
            ->orderBy('order')
            ->fetchArray();

        $this->view->assign(get_defined_vars());
    }

    public function welcomeAction()
    {

    }
}